var carlist = new Vue({
    el: '#carlist',
    data() {
        return {
            cars:[    ]
    }
}
,
mounted: function() {
    //拼车
    this.showCar();
}, 
methods: {
    showCar:function(){
        var that = this;
        $.ajax({
            url: '   ',		
            type: 'get',
        	contentType: "application/json;charset=UTF-8",
        	dataType: 'json',
        	success: function(msg) {
        	    that.car=msg.data;		
        	    console.log(msg.data)
        	},error:function () {
        		console.log("拼车ing");
        		 }
        		});        		      
     }
	
	
	
	
}

);